require 'fileutils'

dir = File.dirname(__FILE__)
FileUtils.cp "#{dir}/catchex.key", "#{dir}/../../../config/" unless File.exist?("#{dir}/catchex.key")
FileUtils.cp "#{dir}/hostname", "#{dir}/../../../config/" unless File.exist?("#{dir}/hostname")
FileUtils.cp "#{dir}/404.html", "#{dir}/../../../public"
FileUtils.cp "#{dir}/500.html", "#{dir}/../../../public"

puts IO.read(File.join(File.dirname(__FILE__), 'README'))

exit(1)